package RadianceM.DistributionSystem.dto;

import RadianceM.DistributionSystem.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class LoginInfo {
	private Integer authority;
	private String token;

	public LoginInfo(Authority authority, String token) {
		this.authority = authority.getCode();
		this.token = token;
	}
}
